package com.liqian.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created with IntelliJ IDEA.
 * @start 2017/9/1日
 * @last 2017/9/15日
 * @version 1.0
 * @author LiQian
 */
@Controller
@RequestMapping("/lucene")
public class HelloController {


    @RequestMapping(value = "/hello",method = RequestMethod.GET)
    public String hello(Model model){

        model.addAttribute("msg","hello");

        return "hello";
    }
}
